package com.atguigu.gmall.payment.process.impl;

import com.atguigu.gmall.payment.process.PayHandler;
import org.springframework.stereotype.Component;

/**
 * @author: atguigu
 * @create: 2023-03-22 11:23
 */
@Component("aliPay")
public class AliPayHandler implements PayHandler {
    /**
     * 调用支付宝接口
     * @param orderId
     * @return
     */
    @Override
    public Boolean createPayHtml(Long orderId) {
        System.out.println("调用支付宝支付api接口生成支付宝支付页");
        return true;
    }

    @Override
    public void youhui() {
        System.out.println("支付宝优惠8毛");
    }
}
